import { MediaQueue } from "@/api/service/lcd-device/types";
import { mediaQueue } from "@/api/service/lcd-queue/lcdQueue";

export const detailData = useTable<MediaQueue>();
export const detailQuery = useQuery<MediaQueue>({
  batchName: ""
});
export const listDetail = async () => {
  detailData.value.loading = true;
  const data = await mediaQueue(detailQuery.value);
  detailData.value.data = data.rows;
  detailData.value.loading = false;
  detailQuery.value.total = data.total;
};
export const searchDetail = async () => {
  detailQuery.value.pageNum = 1;
  await listDetail();
};
